package com.routz.bitblog.blog.blog.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Article {
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;
    @TableField(strategy = FieldStrategy.NOT_EMPTY)
    private String title;
    @TableField(strategy = FieldStrategy.NOT_EMPTY)
    private String userId;
    @TableField(strategy = FieldStrategy.NOT_EMPTY)
    private String content;

    private Integer likes;

    private Date createTime;

    private Byte status;
    @TableField(fill = FieldFill.INSERT)
    private BigDecimal val;

    private Integer collect;

    private Integer comments;

}